package request

import (
	"zsc-boot/app/customer/model"
	"zsc-boot/core"
)

type OrderMyListReq struct {
	core.PageInfo
	model.Order
	CustomerName      string `json:"customerName" form:"customerName"`
	CustomerMobile    string `json:"customerMobile" form:"customerMobile"`
	SignDateStart     string `json:"signDateStart" form:"signDateStart"`
	SignDateEnd       string `json:"signDateEnd" form:"signDateEnd"`
	IsPayOff          *bool  `json:"isPayOff" form:"isPayOff"`
	OrderAddStartDate string `json:"orderAddStartDate" form:"orderAddStartDate"`
	OrderAddEndDate   string `json:"orderAddEndDate" form:"orderAddEndDate"`
	CustomerId        uint   `json:"customerId" form:"customerId" `
}

type ApprovalReq struct {
	Id             uint   `json:"id" form:"id"`
	Approval       string `json:"approval" form:"approval"`
	ApprovalRemark string `json:"approvalRemark" form:"approvalRemark" gorm:"column:approval_remark;default:'';comment:审批备注"`
}

type OrderAddListReq struct {
	core.PageInfo
	OrderId        uint   `json:"orderId" form:"orderId"`
	CustomerName   string `json:"customerName" form:"customerName"`
	CustomerMobile string `json:"customerMobile" form:"customerMobile"`
	UserId         uint   `json:"userId" form:"userId"`
	StartDate      string `json:"startDate" form:"startDate"`
	EndDate        string `json:"endDate" form:"endDate"`
	ApprovalStatus string `json:"approvalStatus" gorm:"column:approval_status;default:未审批;comment:审批状态:未审批，已驳回，已通过"`
}
